package com.leaves.contoller;

import cn.hutool.core.util.URLUtil;
import com.leaves.common.util.IpUtil;
import com.leaves.response.ApiResult;
import org.apache.commons.io.FileUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.*;
import java.net.*;

/**
 * @Author: LEAVES
 * @Version 1.0
 * @Date: 2023年03月08日  10时14分55秒
 * @Description:
 */
@RestController
@RequestMapping("/v1")
public class TestController {

    @GetMapping("/test")
    public ApiResult getFile(HttpServletRequest request){
        IpUtil.xx(request);
        return ApiResult.success();
    }

}
